<template>
  <div class="container">
    <header>
      <h2>送水平台</h2>
    </header>
    <div class="mainContent">
      <navbar></navbar>
      <div class="showinfo">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import "normalize.css";
import "./assets/css/base.css";
import navbar from "./components/commen/nav.vue";

export default {
  name: "App",
  components: {
    navbar,
  },
};
</script>

<style>
.container {
  margin: 200px auto;
  width: 1170px;
  background-color: #f4f4f4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 0 12px rgba(0, 0, 0, 0.04);
}
header {
  height: 100px;
  padding: 0 20px;
  line-height: 100px;
  color: white;
  background-color: #851561;
}
.mainContent {
  display: flex;
}
.showinfo {
  flex: 1;
  padding: 20px 20px;
  max-width: 970px;
}
.new {
  text-align: center;
  margin-top: 20px;
}
</style>
